<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>记住密码框</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div{
            width: 128px;
            margin: 10px auto;
            position: relative;
        }
        div:hover .msg{
            display: block;
        }
        p{
            float: right;
        }
        .msg{
            width: 216px;
            background-color: #FFEFA4;
            font-size: 14px;
            position: absolute;
            top: 24px;
            left: 0px;
            display: none;
        }
    </style>
</head>
<body>
    <div>
       <label for="check"> <input type="checkbox" name="" id="check"><p>两周内自动登录</p></label>
       <p class="msg">为了您的信息安全，请不要在网吧或公用电脑上使用此功能！</p>
    </div>
</body>
</html>